﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MX.Core.Caching
{
    /// <summary>
    /// 缓存工厂
    /// </summary>
    public interface ICachingFactory
    {
        /// <summary>
        /// 获取默认缓存实例
        /// </summary>
        /// <returns></returns>
        ICaching Default { get; }

        /// <summary>
        /// 获取某个名称的缓存实例
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
        ICaching CreateCaching(string name);
    }
}
